/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package cn.ac.iie.di.ban.jr.rest.handlers;

import com.alibaba.fastjson.JSONObject;

/**
 *
 * @author zwlin
 */
public interface JsonHandler {

	public static class Status {

		private String opid;
		private String status;
		private String desc;

		public Status(String opid, String status, String desc) {
			this.opid = opid;
			this.status = status;
			this.desc = desc;
		}

		public Status() {
			this.opid = null;
			this.status = null;
			this.desc = null;
		}

		public String getOpid() {
			return opid;
		}

		public void setOpid(String opid) {
			this.opid = opid;
		}

		public String getStatus() {
			return status;
		}

		public void setStatus(String status) {
			this.status = status;
		}

		public String getDesc() {
			return desc;
		}

		public void setDesc(String desc) {
			this.desc = desc;
		}

	}

	public String getDataType();

	public Status handle(JSONObject obj);
}
